package system.user.web;

import org.springframework.beans.factory.annotation.Autowired;

import system.user.dto.User;
import system.user.service.UserService;

import com.core.framework.db.jdbc.page.Page;
import com.core.framework.web.easyweb.EasyAction;
import com.core.framework.web.easyweb.annotation.Namespace;

@Namespace("/sys")
public class UserAction extends EasyAction {
	@Autowired
	UserService userService;

	public String index() {
		
		Page<User> page = new Page<User>();
		page.setPageNo(2);
		page.setPageSize(5);
		page.setOrderby("createTime");
		page.setDir(" desc ");
		page = userService.getUserPage(page);
		this.setValue("page", page);
		
		return "/common/back/system/user/userIndex.htm";
	}
}
